<?php
namespace app\common\model\we;

use think\Model;

class We extends Model
{
    public static function getTitle(){
         $res=self::where("we_is_show",1)->field("id,we_title")->order("we_sort desc,id asc")->select();
        return $res;
    }

    public static function getInfoById($id,$field="*"){
        $res=self::where("id",$id)->field($field)->find();
        return $res;
    }
}